//--------------------------------------------------------------------
//     Author:Howe
//     Date: 2021-04-13 21:43:59 
//     Description:对此文件的更改可能会导致不正确的行为，并且如果重新生成代码，这些更改将会丢失。
//--------------------------------------------------------------------
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel;

namespace Kylin.Wiki.Model.Entity
{
    ///<summary>
    ///sys_User
    ///</summary>
    [Table("sys_user")]
    public class User : BaseEntity
    {

        /// <summary>
        /// 用户主键
        /// </summary>
        [Key]
        [Required]
        [DisplayName("用户主键")]
        [Column("user_id")]
        public int UserID { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        [DisplayName("用户名")]
        [Column("user_name")]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        [DisplayName("密码")]
        [Column("password")]
        public string Password { get; set; }

        /// <summary>
        /// 显示名称
        /// </summary>
        [Required]
        [DisplayName("显示名称")]
        [Column("display_name")]
        public string DisplayName { get; set; }

        /// <summary>
        /// 手机号
        /// </summary>
        [DisplayName("手机号")]
        [Column("mobile")]
        public string Mobile { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [DisplayName("邮箱")]
        [Column("email")]
        public string Email { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        [DisplayName("头像")]
        [Column("avatar")]
        public string Avatar { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        [DisplayName("部门ID")]
        [Column("dept_id")]
        public int? DeptID { get; set; }

        /// <summary>
        /// 状态 （0正常 1停用）
        /// </summary>
        [DisplayName("状态 （0正常 1停用）")]
        [Column("status")]
        public bool? Status { get; set; }

       

    }
}
